<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<style>
.article-table tr{ height:40px; border-bottom:dotted 1px #D8D8D8; }
.article-table td{ border-right:dotted 1px #D8D8D8;}
.title_a{ display: block; width: 100%; height: 40px; line-height: 40px;}
a:hover {text-decoration: none;}
</style>
<c:if test="${success==true }">
   <div class="ts" style='height:40px;padding:1px;width:90%;'>
	  <div style='margin-top:15px;'><p align="center" style='color:'>修改成功</p></div>
	</div>
</c:if>
<c:if test="${success==false }">
   <div class="ts" style='height:40px;padding:1px;width:90%;'>
	  <div style='margin-top:15px;'><p align="center" style='color:'>修改失败</p></div>
	</div>
</c:if>

<div>
	<table style="width: 100%;" class="table table-hover article-table">
	          <c:choose>
					<c:when test="${empty images }">
						<tr>
							<td colspan="3" style="color: red" align="center">暂时没有专业信息</td>
						</tr>
					</c:when>
					<c:when test="${not empty images}">
					    <tr align="center" bgcolor="#FFFFEC">
					       <td  style='width:30%;' class='content_td1'>标题</td>
					       <td style='width:30%;' class='content_td2'>归属</td>
					       <td  style='width:30%;' class='content_td3'>操作</td>
					    </tr> 
						<c:forEach items="${images }" var="news" varStatus="status">
							<tr class='discuss'>
								<td class="content_td1 ">
								    <div class='newsTitle1'><a
									title='${news.imgIntro}'>
									<span >${news.imgIntro}</span>
									</a></div>
								</td > 
								<td class="content_td2 ">
								<c:if test="${news.imgType==1 }">
								   首页
								</c:if>
								<c:if test="${news.imgType==2 }">
								   党建之窗
								</c:if>
								<c:if test="${news.imgType==3 }">
								 学生工作
								</c:if>
								</td>
								<td class="content_td3"><a href='#'><button te='${news.imgId }' backurl='imagemag' style='width:80px;' url='delindeximage' class='del btn btn-danger'>删除</button></a>
								  |	<a href='<%=basePath %>backend/updateimageui/${news.imgId }' style='width:80px;' class="update btn btn-warning"  >
                                                                                          修改
                                   </a>
                                   <!-- Modal -->
                           
								</td>
						</c:forEach>
						
					</c:when>
				</c:choose>
				</table>
</div>